GeoTriggerEvent

@JsonClass(generateAdapter = true)
class GeoTriggerEvent(val notificationType: NotificationType, val appInfo: AppInfo, val triggerEvents: List<TriggerEvent>, val installRef: UUID, val projectId: UUID, val deviceInfo: DeviceInfo, val triggerChainId: UUID, val zoneInfo: NotificationZoneInfo) : Parcelable

An event triggered by GeoTriggering service when a trigger (zone entry or exit) happens. This event is sent from the SDK via onZoneEntryEvent

onZoneExitEvent callbacks.

Constructors

Link copied to clipboard
constructor(notificationType: NotificationType, appInfo: AppInfo, triggerEvents: List<TriggerEvent>, installRef: UUID, projectId: UUID, deviceInfo: DeviceInfo, triggerChainId: UUID, zoneInfo: NotificationZoneInfo)

Properties

Link copied to clipboard

Application-related detail. Note that the PointSDK's customEventMetaData is included in this appInfo

Link copied to clipboard

Device information e.g. model, os, osVersion

Link copied to clipboard

The installation reference of this Point SDK enabled App.

Link copied to clipboard

Notification Type of this event. For GeoTriggerEvent events, can be either ENTRY or EXIT

Link copied to clipboard

The projectId that the SDK was initialized with.

Link copied to clipboard

The unique ID of the trigger chain. A trigger chain includes an Entry event (if zone setting in Canvas is Exit-disabled), or a pair of Entry and Exit events (if zone setting in Canvas is Exit-enabled).

Link copied to clipboard

A list of trigger events included in this GeoTriggerEvent.

Link copied to clipboard

Details of the zone triggering the event.

Functions

Link copied to clipboard

Find the trigger event that was the zone entry.

Link copied to clipboard

Find the trigger event that was the zone exit. Will be null for ENTRY

Link copied to clipboard
fun toJson(): String

Convert this object to JSON.

Link copied to clipboard
open override fun toString(): String

Override toString to present as JSON.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)